Template:N: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(added single name support)
mNo edit summary
Line 4: Line 4:
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==The Name (n) Template==
==The Name (n) Template==
This template simplifies the process of creating a wiki link for an officer with both a first name and a last name. Rather then have to create a link like this: <nowiki>[[Last_Name, First_Name|First_Name Last_Name]]</nowiki>, you can now just type this: <nowiki>{{n|First_Name|Last_Name}}</nowiki> and you will get the same link. For instance, let's try <pre>{{n|Tenzin|Zhou}}</pre>:
This template simplifies the process of creating a wiki link for an officer with both a first name and a last name. Rather then have to create a link like this: <nowiki>[[Last_Name, First_Name|First_Name Last_Name]]</nowiki>, you can now just type this: <nowiki>{{n|First_Name|Last_Name}}</nowiki> and you will get the same link. For instance, let's try <pre>{{n|Tenzin|Zhou}}</pre>


{{n|Tenzin|Zhou}}
{{n|Tenzin|Zhou}}

Revision as of 03:59, 29 January 2014

The Name (n) Template

This template simplifies the process of creating a wiki link for an officer with both a first name and a last name. Rather then have to create a link like this: [[Last_Name, First_Name|First_Name Last_Name]], you can now just type this: {{n|First_Name|Last_Name}} and you will get the same link. For instance, let's try

{{n|Tenzin|Zhou}}

Tenzin Zhou

Beautiful.

Those with one name will still get one name as well:

{{n|Solok}}

Solok

If you have any questions, ask Rich