Template:Snapshot person: Difference between revisions
Appearance
Providing custom anchor ability |
rebuild |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
<tr {{#if:{{{titles|}}}{{{other-names|}}}| class="cont" |}}><td {{#if:{{{datetype2|}}}{{{date2|}}} | | colspan"2"}}>'''{{#if:{{{datetype1|}}}|{{{datetype1}}}|Birth}}:''' {{{date1}}}, {{{loc1}}}</td>{{#if:{{{datetype2|}}}{{{date2|}}} | <td>'''{{#if:{{{datetype2|}}}|{{{datetype2}}}|Death}}:''' {{{date2}}}{{#if:{{{loc2|}}} |, {{{loc2}}} |}}</td> |}}</tr> | <tr {{#if:{{{titles|}}}{{{other-names|}}}| class="cont" |}}><td {{#if:{{{datetype2|}}}{{{date2|}}} | | colspan"2"}}>'''{{#if:{{{datetype1|}}}|{{{datetype1}}}|Birth}}:''' {{{date1}}}, {{{loc1}}}</td>{{#if:{{{datetype2|}}}{{{date2|}}} | <td>'''{{#if:{{{datetype2|}}}|{{{datetype2}}}|Death}}:''' {{{date2}}}{{#if:{{{loc2|}}} |, {{{loc2}}} |}}</td> |}}</tr> | ||
{{#if:{{{other-names|}}}|<tr {{#if:{{{titles|}}}| class="cont" |}}><td colspan="2">'''Other names:''' {{{other-names}}}</td></tr>|}} | {{#if:{{{other-names|}}}|<tr {{#if:{{{titles|}}}| class="cont" |}}><td colspan="2">'''Other names:''' {{{other-names}}}</td></tr>|}} | ||
{{#if:{{{titles|}}}|<tr><td colspan="2" | {{#if:{{{titles|}}}|<tr><td colspan="2" class="snap-banner">''{{{titles}}}''</td></tr>|}} | ||
<tr><td colspan="2">{{#if:{{{portrait|}}}| [[File:{{{portrait}}}|right|150px]] |}} {{{paragraph}}}</td></tr> | <tr><td colspan="2">{{#if:{{{portrait|}}}| [[File:{{{portrait}}}|right|150px]] |}} {{{paragraph}}}</td></tr> | ||
<tr><td class="snap-footer" | <tr><td class="snap-footer" colspan="2"></td></tr> | ||
</table></includeonly><noinclude> | </table></includeonly><noinclude> | ||
This snapshot box is designed to highlight a specific person in the history of a territory. Provide a very brief overview of information in the paragraph parameter. Important: Please do not attempt to include a full-length article, as this template is not designed for it. | This snapshot box is designed to highlight a specific person in the history of a territory. Provide a very brief overview of information in the paragraph parameter. Important: Please do not attempt to include a full-length article, as this template is not designed for it. | ||
| Line 25: | Line 25: | ||
}} | }} | ||
</pre> | </pre> | ||
This template also includes an optional <code>anchor</code> parameter that can be used to create quick wiki links. For example, including <code>| anchor = Johann Schmidt</code> allows for a quick link on the article like this: <code>[[Article#Johann Schmidt]]</code>. As with all wikilinks, this can be piped to create direct links in the encyclopedia directly to this snapshot (<code>[[Article#Johann Schmidt|Johann Schmidt]]</code>). | This template also includes an optional <code>anchor</code> parameter that can be used to create quick wiki links. For example, including <code>| anchor = Johann Schmidt</code> allows for a quick link on the article like this: <code><nowiki>[[Article#Johann Schmidt]]</nowiki></code>. As with all wikilinks, this can be piped to create direct links in the encyclopedia directly to this snapshot (<code><nowiki>[[Article#Johann Schmidt|Johann Schmidt]]</nowiki></code>). | ||
[[Category:Snapshot templates]] | [[Category:Snapshot templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:19, 17 January 2026
This snapshot box is designed to highlight a specific person in the history of a territory. Provide a very brief overview of information in the paragraph parameter. Important: Please do not attempt to include a full-length article, as this template is not designed for it.
{{Snapshot person
| name = (required)
| anchor = (optional; see note below)
| datetype1 = (if omitted, defaults to "birth"; options include flourished, lived, reigned, appeared, elected, death)
| date1 = (at least one date is required)
| loc1 = location of first date if applicable
| datetype2 = (if omitted, defaults to "death"; options include flourished, disappeared, removed, and buried)
| date2 =
| loc2 = location of second date if applicable
| other-names =
| titles =
| portrait = (use without "File:")
| paragraph = (short overview paragraph to provide historical context)
}}
This template also includes an optional anchor parameter that can be used to create quick wiki links. For example, including | anchor = Johann Schmidt allows for a quick link on the article like this: [[Article#Johann Schmidt]]. As with all wikilinks, this can be piped to create direct links in the encyclopedia directly to this snapshot ([[Article#Johann Schmidt|Johann Schmidt]]).