Template:Editnotices/Group/Wikipedia:Wikipedia Signpost/Next issue
This page is a draft for the next issue of the Signpost. Below is some helpful code that will help you write and format a Signpost draft. If it's blank, you can fill out a template by copy-pasting this in and pressing 'publish changes': {{subst:Wikipedia:Wikipedia Signpost/Templates/Story-preload}}
Images and Galleries
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
To put an image in your article, use the following template (link): {{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2
|
image=File:Malevich.black-square.jpg | size=300px | alt=TKTK | caption=I understand the primacy of pure feeling in creative art. | fullwidth=no
}} <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2 |
image = | size = 300px | alt = TKTK | caption = | fullwidth = no
}}</syntaxhighlight>
This will create the file on the right. Keep the 300px in most cases. If writing a 'full width' article, change
Placing <syntaxhighlight lang="wikitext" style="overflow:hidden;">{{Wikipedia:Wikipedia Signpost/Templates/Inline image |
image = | size = 300px | align = center | alt = TKTK | caption =
}}</syntaxhighlight> (link) will instead create an inline image like below {{Wikipedia:Wikipedia Signpost/Templates/Inline image |
image = File:Black Cross.jpg | size = 300px | align = center | alt = TKTK | caption = The significant thing is feeling, as such, quite apart from the environment in which it is called forth.
}}
To create a gallery, use the following <syntaxhighlight lang="wikitext" style="overflow:hidden;">Each line inside the tags should be formatted like <syntaxhighlight lang="wikitext" inline>File:Whatever.jpg|Caption</syntaxhighlight>). This creates:
If you want it centered, remove t<syntaxhighlight lang="wikitext" inline>style="float:right;"</syntaxhighlight> from the first line. {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2|fullwidth=}} |
Reader polls
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=}} {{Wikipedia:Wikipedia Signpost/Templates/Filler poll-v2 |
votepage=Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes | question=Which is the correct answer? | option1=Answer 1 | option2=Answer 2 | option3=Answer 3 | fullwidth=no
}} To create a poll, use the following code (link): <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Filler poll-v2 |
votepage = Wikipedia:Wikipedia Signpost/Templates/Voter/Issues/Test Poll/Votes | question = Which is the correct answer? | option1 = Answer 1 | option2 = Answer 2 | option3 = Answer 3 | fullwidth = no
}}
</syntaxhighlight>
Only three options/answers are supported. If writing a 'full width' article, change |
Quotes
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=}}
{{Wikipedia:Wikipedia Signpost/Templates/Filler quote-v2 |
1=Lorem ipsum dolor sit amet... | author=AUTHOR | source=SOURCE | fullwidth=no
}} To insert a framed quote like the one on the right, use this template (link): <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Filler quote-v2 |
1 = | author = | source = | fullwidth =
}}
</syntaxhighlight>
If writing a 'full width' article, change
To insert a pull quote like {{Wikipedia:Wikipedia Signpost/Templates/Quote|Lorem ipsum dolor sit amet...|source=Attribution}} use this template (link): <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Quote |
1 = | source =
}}</syntaxhighlight>
To insert a long inline quote like {{Wikipedia:Wikipedia Signpost/Templates/block quote |
text = The goose is on the loose! The geese are on the lease! | by = Oscar Wilde | source = Quotations | ts = Notes from the Underpoop | oldid = 1234567890
}} use this template (link): <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/block quote |
text = | by = | source = | ts = | oldid =
}}</syntaxhighlight> {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2|fullwidth=}} |
Side frames
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes}} {{Wikipedia:Wikipedia Signpost/Templates/Filler frame-v2 |
1=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | caption=A caption | fullwidth=no
}} Side frames help put content in sidebar vignettes. For instance, this one (link): <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Filler frame-v2 |
1 = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | caption = A caption | fullwidth = no
}}</syntaxhighlight> gives the frame on the right. This is useful when you want to insert non-standard images, quotes, graphs, and the like.
{{Wikipedia:Wikipedia Signpost/Templates/Filler frame-v2 |
1=<graph>{"legends":[],"scales":[{"type":"linear","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"line","properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"from":{"data":"chart"}}],"height":100,"axes":[{"type":"x","scale":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":10,"series":"y","x":1},{"y":12,"series":"y","x":2},{"y":6,"series":"y","x":3},{"y":14,"series":"y","x":4},{"y":2,"series":"y","x":5},{"y":10,"series":"y","x":6},{"y":7,"series":"y","x":7},{"y":9,"series":"y","x":8}]}],"width":250}</graph> | caption=A caption | fullwidth=no
}}
For example, to insert the {{Graph:Chart}} generated by
<syntaxhighlight lang="wikitext" style="overflow:hidden;"><graph>{"legends":[],"scales":[{"type":"linear","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"line","properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"from":{"data":"chart"}}],"height":100,"axes":[{"type":"x","scale":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":10,"series":"y","x":1},{"y":12,"series":"y","x":2},{"y":6,"series":"y","x":3},{"y":14,"series":"y","x":4},{"y":2,"series":"y","x":5},{"y":10,"series":"y","x":6},{"y":7,"series":"y","x":7},{"y":9,"series":"y","x":8}]}],"width":250}</graph></syntaxhighlight>
in a frame, simple put the graph code in |
1=
<graph>{"legends":[],"scales":[{"type":"linear","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"line","properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"from":{"data":"chart"}}],"height":100,"axes":[{"type":"x","scale":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":10,"series":"y","x":1},{"y":12,"series":"y","x":2},{"y":6,"series":"y","x":3},{"y":14,"series":"y","x":4},{"y":2,"series":"y","x":5},{"y":10,"series":"y","x":6},{"y":7,"series":"y","x":7},{"y":9,"series":"y","x":8}]}],"width":250}</graph> |
caption=A caption | fullwidth=no
}}</syntaxhighlight> to get the framed Graph:Chart on the right. If writing a 'full width' article, change |
Two-column vs full width styles
|
---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes}} If you keep the 'normal' preloaded draft and work from there, you will be using the two-column style. This is perfectly fine in most cases and you don't need to do anything. However, every time you have a However, you can also fine-tune which style is used at which point in an article. To switch from two-column → full width style midway in an article, insert <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2}} {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes}} </syntaxhighlight> where you want the switch to happen. To switch from full width → two-column style midway in an article, insert <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2}} {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=no}} </syntaxhighlight> where you want the switch to happen. {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2|fullwidth=yes}} |
Article series
|
---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes}} To add a series of 'related articles' your article, use the following code {{Wikipedia:Wikipedia Signpost/Templates/Tag series|image=|seriestitle=Visual Editor|tag=VisualEditor|limit=5|toggle_title=VisualEditor|sortdir=descending|version=2 |fullwidth=no}}
<syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Tag series|image=|seriestitle=Visual Editor|tag=VisualEditor|limit=5|toggle_title=VisualEditor|sortdir=descending|version=2 |fullwidth=no}}</syntaxhighlight> or <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Tag series|image=|seriestitle=Visual Editor|tag=VisualEditor|limit=5|toggle_title=VisualEditor|sortdir=descending|version=2 |fullwidth=yes}}</syntaxhighlight> will create the sidebar on the right. If writing a 'full width' article, change Alternatively, you can use <syntaxhighlight lang="wikitext" style="overflow:hidden;"> {{Wikipedia:Wikipedia Signpost/Templates/Tag series inline|tag=VisualEditor|tag_pretext=the|tag_name=visual editor}}</syntaxhighlight> at the end of an article to create {{Wikipedia:Wikipedia Signpost/Templates/Tag series inline|tag=VisualEditor|tag_pretext=the|tag_name=visual editor}} If you think a topic would make a good series, but you don't see a tag for it, or that all the articles in a series seem 'old', ask for help at the WT:NEWSROOM. Many more tags exist, but they haven't been documented yet. {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2|fullwidth=yes}} |
Links and such
|
---|
{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|fullwidth=yes}}
By the way, the template that you're reading right now is {{Editnotices/Group/Wikipedia:Wikipedia Signpost/Next issue}} (edit). A list of the preload templates for Signpost articles can be found here. {{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2|fullwidth=yes}} |