Difference between revisions of "Template:McD"

From Hitchwiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#switch:{{#rand:1|6}}  
+
<noinclude>
| 1 = [[Template:McD|Golden Arches]]
+
{{Documentation}}
| 2 = [[Template:McD|Yellow burger chain]]
+
</noinclude>
| 3 = [[Template:McD|Ronald's grease pan]]
+
 
| 4 = [[Template:McD|Mickey's D]]
+
{{#if: {{{1|}}}
| 5 = [[Template:McD|The greasy arches]]
+
| {{#switch: {{{1}}}
| 6 = [[Template:McD|Clown's burgers]]
+
  | 1 = [[Template:McD|Golden Arches]]
 +
  | 2 = [[Template:McD|Yellow burger chain]]
 +
  | 3 = [[Template:McD|Ronald's grease pan]]
 +
  | 4 = [[Template:McD|Mickey's D]]
 +
  | 5 = [[Template:McD|The greasy arches]]
 +
  | 6 = [[Template:McD|Clown's burgers]]
 +
  | {{#default: Invalid number! Please use a number between 1 and 6.}}
 
}}
 
}}
 +
| '''Choose a McDonald's nickname:'''
 +
* '''1: Golden Arches'''
 +
* '''2: Yellow burger chain'''
 +
* '''3: Ronald's grease pan'''
 +
* '''4: Mickey's D'''
 +
* '''5: The greasy arches'''
 +
* '''6: Clown's burgers'''
 +
}}
 +
 
<noinclude>
 
<noinclude>
==Why==
+
==Usage==
We don't want to promote {{McD}} on hitchwiki. Yet our favorite hitchhiking spots are often near one of its restaurants.
+
To use this template, pass a number (1 to 6) as a parameter like this:
  
== Usage ==
+
<nowiki>{{McD|1}}</nowiki>
This template displays a random name from a list of alternatives for {{McD}}. To use it, simply type:
 
  
<nowiki>{{McD}}</nowiki>
+
This will display the corresponding nickname from the list.
  
Each time the template is used, a different name will be displayed from the list.
+
== Notes ==
 
- The displayed name is clickable and will link back to this template.
 
- The displayed name is clickable and will link back to this template.
 
 
</noinclude>
 
</noinclude>
  
 
[[Category:Templates]]
 
[[Category:Templates]]

Revision as of 14:33, 25 December 2024

Template:Documentation


Choose a McDonald's nickname:

  • 1: Golden Arches
  • 2: Yellow burger chain
  • 3: Ronald's grease pan
  • 4: Mickey's D
  • 5: The greasy arches
  • 6: Clown's burgers


Usage

To use this template, pass a number (1 to 6) as a parameter like this:

{{McD|1}}

This will display the corresponding nickname from the list.

Notes

- The displayed name is clickable and will link back to this template.