Pomoć:Transkluzija
Za više informacija o pojmu, pročitajte članak Transkluzija.
Transclusion refers to the inclusion of the content from one document within another document by reference. In Wikipedia, transclusion means the MediaWiki software retrieving the content from a source page, often a template, and incorporating it into the content of a target page.
Kako radi transkluzija
Similar to creating a wikilink using double square brackets (<syntaxhighlight lang="wikitext" inline="">Pagename</syntaxhighlight>), a page can be transcluded as a template by enclosing its title in double curly braces or double curly brackets: <syntaxhighlight lang="wikitext" inline="">Predložak:Namespace:Pagename</syntaxhighlight>. Any changes made to the source page, or template, are automatically reflected on all pages that include the transcluded content.[a]
Pravila imenskog prostora
If no namespace is specified, it is assumed to be in the Template namespace. To refer to a page in the Main article namespace, it is necessary to prefix it with a colon (:). For example:
- <syntaxhighlight lang="wikitext" inline="">Predložak:Pagename</syntaxhighlight> is the same as <syntaxhighlight lang="wikitext" inline="">Predložak:Pagename</syntaxhighlight>
- <syntaxhighlight lang="wikitext" inline="">Predložak:Stochastic processes</syntaxhighlight> will transclude from the page Template:Stochastic processes
- <syntaxhighlight lang="wikitext" inline="">Stochastic processes</syntaxhighlight> will transclude from the page Stochastic processes (an article, in the Main namespace)
- <syntaxhighlight lang="wikitext" inline="">
Pravila HIE (HIE:PrHIE) |
|---|
| Marljiv rad i suradnja |
| Dogovor |
| Izbjegavanje sukoba |
<templatestyles src="Predložak:Prečac/styles.css">
Pretpostavljanje dobre namjere temeljno je načelo rada na HIE. Dopuštajući ljudima da uređuju moramo pretpostaviti da će veći dio ljudi koji rade na projektu pokušati pomoći, a ne odmoći. Kada to ne bi bila istina, projekt poput HIE bio bi osuđen na propast na njegovom samom početku. Kada razumno možete pretpostaviti da je pogreška koju je netko učinio bila dobronamjerna, ispravite ju bez zamjeranja. Kada se s nekim ne slažete, sjetite se da on sam vjeruje kako zapravo pomaže projektu. Koristite stranice za razgovor kako biste se izjasnili, i dajte drugima priliku da i sami to učine. Čineći to, izbjegavaju se nesporazumi i nesloga, kao i sprječavanje eskaliranja problema.
Budite strpljivi s novopridošlicama. Novi suradnici nisu svjesni HIE-ine jedinstvene kulture i načina uređivanja HIE, te često čine pogreške ili ne poštuju norme zajednice na samom projektu. Nije rijetkost da novi suradnici vjeruju kako bi se pravila trebala promijeniti radi prilagođavanju njihovoj razini iskustva. Istovremeno, mnoge novopridošlice sa sobom donose iskustvo i vještinu, radi kojih smatraju da zaslužuju neposredno poštovanje. Ophođenja koja se uzdižu iz ovakvih perspektiva u većini slučajeva nisu zlonamjerna.
Pretpostavljanje dobre namjere jest u samim namjerama, ne djelima. Dobronamjerne osobe ponekad čine pogreške, na što bi ih vi trebali upozoriti kada to čine. Nemojte pomisliti da je njihova pogreška bila namjerna. Ispravite, no ne grdite. Na HIE će uvijek biti osoba s kojima se nećete slagati. Čak i kada su u krivu, ne mora značiti da namjerno žele uništiti čitav projekt. Postojat će i osobe s kojima ćete teže surađivati. Ni to ne znači da te osobe žele uništiti čitav projekt. Nikada nije potrebno da suradnikova uređivanja pripišemo lošoj namjeri, čak i kada se sama loša namjera čini očitom, jer se sve naše protumjere (uklanjanja, blokiranja) mogu izvesti postupcima, a ne namjerama.
Pretpostavljanje dobre namjere ne treba strogo značiti da se uređivačke radnje suradnika ne bi smjele kritizirati, no kritika se ne bi smjela pripisivati zlobi. Optuživanje druge strane da nije pretpostavila dobru namjeru, bez iskazivanja razumnih podupirućih dokaza, još je jedan neuspjeli pokušaj pretpostavljanja dobre namjere.
Vidi još
- Hrvatska internetska enciklopedija:Budite odvažni
- Hrvatska internetska enciklopedija:Molimo budite dobri prema novim suradnicima
- Hrvatska internetska enciklopedija:Ne ometajte rad HIE da biste nešto dokazali
- Hrvatska internetska enciklopedija:HIEbonton</syntaxhighlight> will transclude from the page Hrvatska internetska enciklopedija:Pretpostavite dobru namjeru
Upravljanje transkluzijom
Transclusion and what content it includes or excludes can be modified by using the invisible wikitext tags , , , and on the source page, as further outlined in § Transclusion markup.[b] The first three tags enable § Djelimična transkluzija, as opposed to the default behavior of double curly braces, which will transclude the entire source page's content. For § Selective transclusion, the or tags can be used and sections of the source page named, then using parser functions the template can be called with the section name as a parameter: <syntaxhighlight lang="wikitext" inline="">{{#section:Pagename|Sectionname}}</syntaxhighlight>.
Transkluzija i supstitucija
Transclusion events occur each time the target page is loaded and the template is rendered. A related event is Substitution, where a template call is replaced with its transcluded source content at the time it is invoked in a one-time inclusion of the content. Unlike transclusion, which continuously updates the target page with changes from the source, substitution results in a one-time inclusion of the content, meaning that subsequent updates to the source content will not be reflected in the target page. For example, a template call for <syntaxhighlight lang="wikitext" inline="">Predložak:Pagename</syntaxhighlight> with the <syntaxhighlight lang="wikitext" inline="">subst:</syntaxhighlight> prefix results in the substitution template call <syntaxhighlight lang="wikitext" inline="">{{subst:Pagename}}</syntaxhighlight>. When invoked, this template is replaced, also referred to as substituted, with the actual wikitext of the source page at the time of the call, thereby making it a permanent part of the target page.[c]
Transkluzija podataka
Moguće je unijeti podatke s Wikipodataka u Wikipedijske članke transkluzijom s Wikipodataka.
Kako transkluzjia radi (2)
Predložak:Transcluded section Pomoć:Transkluzija/How Transclusion Works
Transkluzijska sintaksa
The general syntax for transclusion on Wikipedia follows the format <syntaxhighlight lang="wikitext" inline="">Predložak:Namespace:Pagename</syntaxhighlight>, where Namespace:Pagename specifies the title of a Wikipedia page.
Similar to creating a HIEpoveznicu using double square brackets (<syntaxhighlight lang="wikitext" inline="">Pagename</syntaxhighlight>), a page can be transcluded as a template by enclosing its title in double curly braces: <syntaxhighlight lang="wikitext" inline="">Predložak:Namespace:Pagename</syntaxhighlight>. Any changes made to the source page, or template, are automatically reflected on all pages that include the transcluded content.[d]
Hrvatska internetska enciklopedija is structured using namespaces, which organize pages based on their function. For example, a page titled Predložak:Xtn belongs to the imenskom prostoru Hrvatska internetska enciklopedija, with Hrvatska internetska enciklopedija: as its namespace and Tips as its pagename. However, articles in the glavni imenski prostor, such as Predložak:Xtn, do not require a namespace prefix when linked using <syntaxhighlight lang="wikitext" inline="">krumpir</syntaxhighlight>, as Hrvatska internetska enciklopedija assumes any wikilink without a specified namespace belongs to the Article namespace.
When transcluding pages, if no namespace is specified, Wikipedia defaults to the Template namespace. To reference a page in the Article namespace within transclusion syntax, it must be explicitly prefixed with a colon :
(e.g., <syntaxhighlight lang="wikitext" inline="">Potato</syntaxhighlight>).
Pogrješka u citiranju: oznake <ref> postoje za skupinu "lower-alpha", ali nema pripadajuće oznake <references group="lower-alpha"/>