Difference between revisions of "Template:create"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Mention the date format we want; mention {{}} and ~; duplicate the text for the template view)
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<includeonly>{{comic
 
<includeonly>{{comic
 
| number    =  
 
| number    =  
| date      =  
+
| date      = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
 
| title    =  
 
| title    =  
 
| image    =  
 
| image    =  
| imagesize =
 
 
| titletext =  
 
| titletext =  
 
}}
 
}}
  
== Explanation ==
+
==Explanation==
 
<!-- Replace this line with the explanation! -->
 
<!-- Replace this line with the explanation! -->
  
== Transcript ==
+
==Transcript==
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript". -->
+
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
 +
  -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks.
 +
  -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
 +
  -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki></nowiki>.
 +
  -- Do not include the title text again here. -->
  
{{Comic discussion}}</includeonly><noinclude>
+
{{comic discussion}}
 +
<!-- Include any categories below this line. --></includeonly><noinclude>
  
Documentation for this template goes here. See [[mw:Manual:Creating pages with preloaded text]] and [[mw:Manual:Parameters to index.php#Options affecting the edit form]].</noinclude>
+
See [[mw:Manual:Creating pages with preloaded text]] and [[mw:Manual:Parameters to index.php#Options affecting the edit form]]. The following is the text preloaded by this template:
 +
 
 +
<pre>
 +
{{comic
 +
| number    =
 +
| date      = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
 +
| title    =
 +
| image    =
 +
| titletext =
 +
}}
 +
 
 +
==Explanation==
 +
<!-- Replace this line with the explanation! -->
 +
 
 +
==Transcript==
 +
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
 +
  -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks.
 +
  -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
 +
  -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki><nowiki></nowiki></nowiki>.
 +
  -- Do not include the title text again here. -->
 +
 
 +
{{comic discussion}}
 +
<!-- Include any categories below this line. -->
 +
</pre>
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 17:43, 19 April 2013


See mw:Manual:Creating pages with preloaded text and mw:Manual:Parameters to index.php#Options affecting the edit form. The following is the text preloaded by this template:

{{comic
| number    = 
| date      = <!-- Click on the "All Comics" button in the sidebar on the left and find this comic in the list. The date is in the rightmost column, in the form YYYY-MM-DD. Please replace this comment with the date in Mmmm D, YYYY format. -->
| title     = 
| image     = 
| titletext = 
}}

==Explanation==
<!-- Replace this line with the explanation! -->

==Transcript==
<!-- The transcript can be found in a hidden <div> element on the xkcd comic's html source, with id "transcript".
  -- Tip: Use colons (:) in the beginning of lines to preserve the original line breaks. 
  -- Any actions or descriptive lines in [[double brackets]] should be reduced to [single brackets] to avoid wikilinking.
  -- Similarly for {{}}. Be careful to escape multiple ~s with <nowiki></nowiki>.
  -- Do not include the title text again here. -->

{{comic discussion}}
<!-- Include any categories below this line. -->