Template:newspage

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(there are four of these now, might as well make a template)
(added an extra color for what's in the new sticker announcements)
 
(includes 5 intermediate revisions)
Line 1: Line 1:
{| width="75%"
{| width="75%"
|-
|-
-
|style="background-color:#{{#switch:{{{color|1}}}|1=3F629A|2=A0B7D4}};color:white;border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;-khtml-border-radius:20px;-icab-border-radius:20px;-o-border-radius:20px;padding:2em"|
+
|style="background-color:#{{#switch:{{{color|1}}}|1=3F629A|2=A0B7D4|3=5C5C5C|4=5496C0}};color:white;border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px;-khtml-border-radius:20px;-icab-border-radius:20px;-o-border-radius:20px;padding:2em"|
-
'''<span class="plainlinks">[[hr:|<span style="color:#{{#switch:{{{color|1}}}|1=6582AE|2=6582AE}}">< back</span>]]</span>'''
+
'''<span class="plainlinks">[[hr:|{{f|#{{#switch:{{{color|1}}}|1=6582AE|2=6582AE}}|t=< back}}]]</span>'''
-
<span style="font-size:200%">'''{{{1}}}'''</span>
+
{{f|size=200%|t='''{{{1}}}'''}}
-
{{{2}}}
+
{{#if:{{{image|}}}<!--
-
|}<noinclude>
+
-->|<center>{{{image|}}}<br>
-
'''Usage:''' <code><nowiki>{{newspage|color=2|Title|Text}}</nowiki></code>
+
{{#if:{{{caption|}}}<!--
 +
  -->|<small>''{{{caption|}}}''</small><!--
 +
  -->|<!--
 +
-->}}</center><!-- /* end {{#if:{{{caption|}}} */ -->
 +
|}}<!-- /* end {{#if:{{{image|}}} */ -->
 +
{{{text}}}
 +
|}<includeonly>[[Category:News Pages]]</includeonly><noinclude>
 +
'''Usage:''' <pre>{{newspage|color=2|Title
 +
|image=[[File:news ruffleupdate.jpg|300px|Ruffulate!]]
 +
|caption=Caption under the image
 +
|text=Text}}</pre>
-
The "color" parameter is set to 1 by default, but can be set to 2 for an alternate color scheme.
+
The "color" parameter is set to 1 by default, but can be set to 2, 3, and 4 for an alternate color scheme.
[[Category:Fancy Formatting Templates]]
[[Category:Fancy Formatting Templates]]
 +
</noinclude>

Current revision as of 19:40, 25 March 2023

< back

{{{1}}}


{{{text}}}

Usage:
{{newspage|color=2|Title
|image=[[File:news ruffleupdate.jpg|300px|Ruffulate!]]
|caption=Caption under the image
|text=Text}}

The "color" parameter is set to 1 by default, but can be set to 2, 3, and 4 for an alternate color scheme.

Personal tools