Redigerer
Mal:Eksterne medier/dok
(avsnitt)
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
== Usage == Paste this into your article, removing the parameters that are left blank: <syntaxhighlight lang="wikitext"> {{eksterne medier | float = | width = | topic = <!--centered italic text---> | caption = <!-- text placed left or right of headerimage ---> | headerimage= <!--search commons please include "|alt= text" and x-height in px "|x20px" example [[File:YouTube Logo 2017.svg|alt=YouTube logo|x20px|left]] or ...|right]] ---> | title = | image1 = | image2 = | image3 = | audio1 = | audio2 = | audio3 = | video1 = | video2 = | video3 = | model1 = | model2 = | model3 = }}</syntaxhighlight> The {{tl|eksterne medier}} template can be used multiple times in an article, and each instance can be used to link to more than one file. === Parameters === ; float: Valid options are "left" or "right". The template defaults to displaying on the right-hand-side. (Note: This template's documentation previously, and erroneously, listed {{para|align}} as a valid parameter, but it was not valid. Instances of {{para|align}}, if found, should usually be replaced with {{para|float}}.) ; width: This should be a complete width measurement including units. Examples: <code>300px</code>, <code>22em</code>, <code>30%</code>. The template defaults to 258px wide. ; topic: Optional text field that will appear above the media links. ; title: Optional text to replace the automatically calculated title. ; headerimage: Optional image to display at the top of the template. Use full image syntax, for example <nowiki>[[File:example.png|200px]]</nowiki>. ; caption: Optional caption text to put underneath the header image. ; media links: Each file to be linked should specify its type and have a different number, starting from 1. For example, a template containing four images and one video would label them as <code>image1</code>, <code>image2</code>, <code>image3</code>, <code>image4</code> and <code>video1</code>. The attribute has a free format, so any amount of detail may be added. The first part of the entry should be formatted as a normal external link, i.e. {{code|[http://example.com/image.jpg Image description]|moin}} for [http://example.com/image.jpg Image description]. After that, any additional detail can be given on the same line. See the examples for details. : '''Note:''' when adding a link to an external media source like this, it is essential that the source page be linked too with the date of retrieval, both to satisfy Wikipedia's sourcing criteria for the statement about the presented media and to ensure that the link can quickly be corrected should the source URL be changed. Reference tags can be used for this purpose. {{collapse top|header=TemplateData}} <templatedata> { "params": { "width": { "description": "Width of the box", "example": "300px, 22em, 30%", "default": "258px" }, "float": { "type": "string", "suggestedvalues": [ "left", "right" ], "description": "Alignment of the box on the page", "suggested": true, "default": "right" }, "title": { "description": "Optional text to replace the automatically calculated title" }, "image1": {}, "audio1": {}, "video1": {}, "model1": {}, "image2": {}, "model2": {}, "topic": { "description": "Optional text field that will appear above the media links" }, "headerimage": { "description": "Optional image to display at the top of the template. Use full image syntax, for example [[File:example.png|200px]].", "type": "unbalanced-wikitext" }, "caption": { "description": "Optional caption text to put underneath the header image" }, "image3": {}, "image4": {}, "image5": {}, "image6": {}, "image7": {}, "image8": {}, "image9": {}, "image10": {}, "image11": {}, "image12": {}, "image13": {}, "image14": {}, "image15": {}, "image16": {}, "image17": {}, "image18": {}, "image19": {}, "image20": {}, "audio2": {}, "audio3": {}, "audio4": {}, "audio5": {}, "audio6": {}, "audio7": {}, "audio8": {}, "audio9": {}, "audio10": {}, "audio11": {}, "audio12": {}, "audio13": {}, "audio14": {}, "audio15": {}, "audio16": {}, "audio17": {}, "audio18": {}, "audio19": {}, "audio20": {}, "video2": {}, "video3": {}, "video4": {}, "video5": {}, "video6": {}, "video7": {}, "video8": {}, "video9": {}, "video10": {}, "video11": {}, "video12": {}, "video13": {}, "video14": {}, "video15": {}, "video16": {}, "video17": {}, "video18": {}, "video19": {}, "video20": {}, "model3": {}, "model4": {}, "model5": {}, "model6": {}, "model7": {}, "model8": {}, "model9": {}, "model10": {}, "model11": {}, "model12": {}, "model13": {}, "model14": {}, "model15": {}, "model16": {}, "model17": {}, "model18": {}, "model19": {}, "model20": {} }, "description": "Provides a box with a direct link to media hosted off of Wikipedia", "paramOrder": [ "title", "topic", "caption", "image1", "audio1", "video1", "model1", "width", "float", "headerimage", "image2", "model2", "image3", "image4", "image5", "image6", "image7", "image8", "image9", "image10", "image11", "image12", "image13", "image14", "image15", "image16", "image17", "image18", "image19", "image20", "audio2", "audio3", "audio4", "audio5", "audio6", "audio7", "audio8", "audio9", "audio10", "audio11", "audio12", "audio13", "audio14", "audio15", "audio16", "audio17", "audio18", "audio19", "audio20", "video2", "video3", "video4", "video5", "video6", "video7", "video8", "video9", "video10", "video11", "video12", "video13", "video14", "video15", "video16", "video17", "video18", "video19", "video20", "model3", "model4", "model5", "model6", "model7", "model8", "model9", "model10", "model11", "model12", "model13", "model14", "model15", "model16", "model17", "model18", "model19", "model20" ] } </templatedata> {{collapse bottom}}
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-IkkeKommersiell-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider med feil på syntaksfremheving
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Søk
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Spesialsider
Verktøy
Lenker hit
Relaterte endringer
Sideinformasjon
På andre prosjekter