Difference between revisions of "Template:NamesOf"

From World Naked Bike Ride
Jump to: navigation, search
(Display also the linked ride location)
(+ Simple guidelines. Layout improved.)
Line 1: Line 1:
{{#if:{{{2|}}}|<div style="font-style:italic;{{#ifexist:Category:{{{1}}}|margin-top:-.25em;">|display:inline;">[[{{{1}}}]]&#8202;}}({{{2|}}}{{#if:{{{3|}}}|&middot;{{{3}}}}}{{#if:{{{4|}}}|&middot;{{{4}}}}}{{#if:{{{5|}}}|&middot;{{{5}}}}}{{#if:{{{6|}}}|&middot;{{{6}}}}}{{#if:{{{7|}}}|&middot;{{{7}}}}}{{#if:{{{8|}}}|&middot;etc.}}){{#ifexist:Category:{{{1|}}}|<br clear="all" />}}</div>}}
+
<includeonly><div style="{{#ifexist:Category:{{{1}}}|margin-top:-.25em;">|display:inline;">[[{{{1|Missing parameter: country name or ride location name (in English)}}}]]}}{{#if:{{{2|}}}|&#8202;''({{{2|}}}{{#if:{{{3|}}}|''/''{{{3}}}}}{{#if:{{{4|}}}|''/''{{{4}}}}}{{#if:{{{5|}}}|''/''{{{5}}}}}{{#if:{{{6|}}}|''/''{{{6}}}}}{{#if:{{{7|}}}|''/''{{{7}}}}}{{#if:{{{8|}}}|''/''etc.}})''}}{{#ifexist:Category:{{{1|}}}|<br clear="all" />}}</div></includeonly><noinclude>[[Category:Templates]]This template should be called from the [[List of rides]]:
 +
*Optionally immediately ''underneath'' the country name (chapter title):<pre style="margin:.3em 0 0 0;padding:0;">{{NamesOf|Belgium|België|Belgique|Belgien}}</pre>The first parameter must be identical to the chapter name (and will not be repeated by this template)<br />'''Note:''' The page for the country (obviously by the same name as the 1st parameter) should have been created and call the template <span style="white-space:nowrap;">{&zwj;{Country breadcrumb}&zwj;}</span>
 +
*Necessarily for each ride location name, immediately ''behind'' <span style="white-space:nowrap;">{&zwj;{Ride status tab - ...}&zwj;}</span><pre style="margin:.3em 0 0 0;padding:0;">{{NamesOf|Brussels|Bruxelles|Brussel}}</pre>The first parameter must be the ride location name in English. The template will show it with a link to the ride location page by that name (in red in case that page still needs to be created).</noinclude>

Revision as of 19:50, 4 May 2020

This template should be called from the List of rides:

  • Optionally immediately underneath the country name (chapter title):
    {{NamesOf|Belgium|België|Belgique|Belgien}}
    The first parameter must be identical to the chapter name (and will not be repeated by this template)
    Note: The page for the country (obviously by the same name as the 1st parameter) should have been created and call the template {‍{Country breadcrumb}‍}
  • Necessarily for each ride location name, immediately behind {‍{Ride status tab - ...}‍}
    {{NamesOf|Brussels|Bruxelles|Brussel}}
    The first parameter must be the ride location name in English. The template will show it with a link to the ride location page by that name (in red in case that page still needs to be created).